import request from '@/utils/request'
//微信消息模板列表
export function getList(params = {}) {
    return request({
        url: '/wxTemplate/list',
        method: 'POST',
        data: params
    }).then(({
        data
    }) => {
        return data
    })
}
//详情
export function getDetail(params) {
    return request({
        url: '/wxTemplate/detail',
        method: 'POST',
        data: params
    }).then(({
        data
    }) => data)
}
//保存
export function save(params) {
    return request({
        url: '/wxTemplate/save',
        method: 'POST',
        data: params
    }).then(res => {
        return res
    })
}